package com.dms.modules.logistics.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order_delivery")
@ApiModel("订单物流实体")
public class OrderDelivery {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("物流ID")
    private Long id;
    
    @ApiModelProperty("订单ID")
    private Long orderId;
    
    @ApiModelProperty("快递公司")
    private String deliveryCompany;
    
    @ApiModelProperty("快递单号")
    private String deliveryNo;
    
    @ApiModelProperty("收件人姓名")
    private String receiverName;
    
    @ApiModelProperty("收件人电话")
    private String receiverPhone;
    
    @ApiModelProperty("收件人地址")
    private String receiverAddress;
    
    @ApiModelProperty("物流状态：0-待发货 1-已发货 2-运输中 3-已送达")
    private Integer deliveryStatus;
    
    @ApiModelProperty("发货时间")
    private LocalDateTime deliveryTime;
    
    @ApiModelProperty("收货时间")
    private LocalDateTime receiveTime;
    
    @ApiModelProperty("物流跟踪信息")
    private String trackingInfo;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除")
    @TableLogic
    private Integer deleted;
} 